// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Root from './Root'
import {router} from './router/index.js'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import axios from './axios';
import http from './axios/http';

import 'vue2-animate/dist/vue2-animate.min.css';

import querystring from 'querystring'

Vue.use(iView);

//全局注册Axios
Vue.prototype.axios = axios;
Vue.prototype.$qs = querystring;
Vue.prototype.http = http;
Vue.prototype.baseUrl = http.baseUrl;



Vue.config.productionTip = false;


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  /*components: {App},
  template: '<App/>',*/
  render: h => h(Root),
});


